package com.toptech.downloadmanager.entity;

import org.litepal.crud.DataSupport;

public class ThreadInfo extends DataSupport{
	private int id;
	private String url;
	private long start;
	private long end;
	private long finished;
	private long filelength;

	public ThreadInfo() {
	}

	public ThreadInfo(int id, String url, long start, long end, long finished, long filelength) {
		this.id = id;
		this.url = url;
		this.start = start;
		this.end = end;
		this.finished = finished;
		this.filelength = filelength;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getStart() {
		return start;
	}

	public void setStart(long start) {
		this.start = start;
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(long end) {
		this.end = end;
	}

	public long getFinished() {
		return finished;
	}

	public void setFinished(long finished) {
		this.finished = finished;
	}

	public long getFilelength() {
		return filelength;
	}

	public void setFilelength(long filelength) {
		this.filelength = filelength;
	}

	@Override
	public String toString() {
		return "ThreadInfo{" +
				"id=" + id +
				", url='" + url + '\'' +
				", start=" + start +
				", end=" + end +
				", finished=" + finished +
				", filelength=" + filelength +
				'}';
	}
}
